using System;

namespace Tail
{
	/// <summary>
	/// Summary description for StringVerifier.
	/// </summary>
	public class StringVerifier : Verifier
	{
		String text;
		public StringVerifier(String text,String key) : base(key)
		{
			this.text = text;
		}

		public override bool verify(String val,System.Collections.Hashtable hash){
			bool result = text.Equals("*") || val.ToUpper().Equals(text.ToUpper());
			if (result)
				hash.Add(key,val);
			return result;
		}
	}
}
